<template>
  <el-dialog
    append-to-body
    :before-close="cancel"
    :visible.sync="value">
    <template slot="title">
      修改返利结算模式
    </template>
    <el-form :model="form" ref="refForm" style="border: 1px solid #eee;padding:20px;">
      <el-form-item label="返利结算模式">
        <el-col :span="24">
          <el-radio-group v-model="form.modeType">
            <el-radio :label="1">人工审核</el-radio>
            <el-radio :label="2">自动审核</el-radio>
          </el-radio-group>
        </el-col>
      </el-form-item>
    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button @click="cancel">取 消</el-button>
      <el-button type="primary" @click="doSave({action: 'saveForm', form: 'form'})">确 定</el-button>
    </div>
  </el-dialog>

</template>

<script>
import { form } from '@/build';

export default {
  name: 'change-rebate-mode',
  props: ['value', 'id'],
  mixins: [form],
  data() {
    return {
      form: {
        modeType: 1,
      },
    };
  },
  methods: {
    cancel() {
      this.$emit('input', false);
    },
  },
  computed: {
  },
  mounted() {
  },
};
</script>

<style scoped>
</style>
